package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.entity.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional
public interface CategoryService {

    IPage<Category> getCategory(Integer page, Integer pageSize);

    Integer addaddCategory(Category category);

    Integer updateCategory(Category category);

    Integer deleteCategory(Long id);

    List<Category> getByTypeCategory(Integer type);

}
